package com.fjw.service.impl;

import com.fjw.dao.RoleMapper;
import com.fjw.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public Set<String> findAllRole(String username) {
        return roleMapper.findRoleByUsername(username);
    }
}
